<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta content=always name=referrer>
    <link rel="stylesheet" href="__STATIC__/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/newbase.css">
    <script src="__STATIC__/js/jquery-1.8.2.js"></script>
    <title>退换货</title>
    <script>
        $(function () {
            var h1 = $('.header').height();
            var h2 = $('.tablist').height();
            var h3 = $('.tabcon').height();
            var h4 = $('.submit').height();
            var wheight = window.screen.height;
            $('.tabcon').css('margin-bottom',(wheight-h1-h2-h3-h4-20)+'px');
        })
    </script>
</head>
{include file="public/href" /}
<body>
<div class="wrap-log">
    <div class="header">
        <p>退换货</p>
        <a href="{:url('mobile/user_info/member_order')}?status={:input('status','all')}&title={:input('title')}">
            <img src="__STATIC__/img/back.png" class="back" >
        </a>
    </div>
    <div class="tablist">
        <ul>
            <li class="cur">
            <a href="javascript:void(0);">申请退换货</a>
            </li>
            <li >
            <a href="{:url('member_order/return_money_record')}?status={:input('status','all')}&order_id={:input('order_id')}">退换货记录</a>
            </li>
        </ul>
    </div>
    <form class="registerform" id="registerform" name="forms" action="" method="post">
    <div class="tabcon">
            <div class="cur" id="center">
                <div class="tabcon1">
                    <h4>物流公司</h4>
                    <input name="tracking" type="text" value="" placeholder="请输入物流公司名称" datatype="*1-30" nullmsg="请输入物流公司名称" errormsg="请输入物流公司名称"  class="text" >
                    <h4>物流单号</h4>
                    <input name="tracking_number" type="number" value="" placeholder="请输入物流单号" datatype="n" nullmsg="请输入物流单号" errormsg="请输入物流单号" class="text">
                    <input name="id" type="hidden" value="{:input('rid','')}" />
                </div>
            </div>
    </div>
    <input type="submit" class="submit" value="提交申请">
    </form>
</div>
<script type="text/javascript" src="/static/plupload/plupload.full.min.js"></script>
{include file="public/src" /}
<script type="text/javascript">
    // 验证
    $(function () {

        $.Tipmsg.r = null;
        $.Tipmsg.p = null;

        var showmsg = function (msg) {
            layer.open({content:msg,skin:'msg',time:2});
            return false;
        };
        var demo = $('.registerform').Validform({
            tiptype: function (msg) {
                layer.open({content:msg,skin:'msg',time:2});
                return false;
            },
            ajaxPost: true,
            callback: function (data) {
                if (data.code == '200') {
                    layer.open({content:data.message,skin:'msg',time:2});
                    setTimeout(function () {
                        location.href = "{:url('mobile/user_info/member_order')}?status=all";
                    }, 2000);
                } else {
                    layer.open({content:data.message,skin:'msg',time:2});
                    return false;
                }
            }
        });
        demo.config({
            ajaxpost:{
                error: function () {
                    layer.open({content:'网络繁忙,请重试',skin:'msg',time:2});
                }
            }
        })

    })
</script>
</body>
</html>